package com.define.ssh.service.impl;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.define.ssh.dao.DeptuserDao;
import com.define.ssh.model.Deptuser;
import com.define.ssh.service.DeptuserService;
import com.define.ssh.util.Pager;

@Service("deptuserServiceImpl")
public class DeptuserServiceImpl extends BaseServiceImpl<Deptuser, Long>
		implements DeptuserService {

	@Resource(name = "deptuserDaoImpl")
	private DeptuserDao deptuserDao;

	@Resource(name = "deptuserDaoImpl")
	public void setBaseDao(DeptuserDao deptuserDao) {
		super.setBaseDao(deptuserDao);
	}

	/***
	 * 删除该用户 对应的部门
	 * 
	 * @param user_id
	 */
	@Override
	public void delDeptUserByUserId(Long user_id) {
		this.deptuserDao.delDeptUserByUserId(user_id);
	}

	@Override
	public Pager findPagerByAccount(Pager pager, HashMap<String, Object> hm) {

		return this.deptuserDao.findPagerByAccount(pager, hm);
	}

	@Override
	public Pager findPagerByFictitiousTeamId(Long fteamId,Pager pager) {
		return this.deptuserDao.findPagerByFictitiousTeamId(fteamId,pager);
	}

	@Override
	public Pager findPagerByPowerList(List<Integer> power_list, Pager pager) {
		return this.deptuserDao.findPagerByPowerList(power_list,pager);
	}

	@Override
	public Pager find(Pager pager, Integer deptid, String data) {
		return this.deptuserDao.find(pager, deptid, data);
	}

}
